/**
 * 此模块用于维护注册接口
 */

import request from '@/utils/request'

/**
 * @desc 获取验证码
 * @param phone 注册手机号
 * @returns Promise
 */
export const getVerificationCode = (phone) => {
  return request({
    method: 'GET',
    url: `/api/user/passport/sendCode/${phone}`
  })
}

export const getRegistered = (data) => {
  return request({
    method: 'POST',
    url: '/api/user/passport/register',
    data: data
  })
}
